package com.hangzhou.xyj.model.type;

/**
 * Created by neo.duan on 2016/2/15.
 * 戏曲播放按钮状态类型
 */
public enum EPlayControlType {
    // 未知
    UNKNOWN(0),
    // 播放
    PLAY(1),
    // 暂停
    PAUSE(2),
    // 停止
    STOP(3),
    //退出
    EXIT(4);

    private int mValue;

    EPlayControlType(int value) {
        this.mValue = value;
    }

    public static EPlayControlType valueOf(int value) {
        switch (value) {
            case 1:
                return PLAY;
            case 2:
                return PAUSE;
            case 3:
                return STOP;
            case 4:
                return EXIT;
            default:
                return UNKNOWN;
        }
    }

    public int getValue() {
        return this.mValue;
    }
}
